package com.socket.context;

import org.springframework.context.ApplicationContext;
import org.springframework.context.ApplicationContextAware;
import org.springframework.stereotype.Component;

/**
 * Created by kaddddd on 2017/8/16 0016.
 */
@Component
public class SpringContextTool implements ApplicationContextAware {
    private static ApplicationContext context;
    public void setApplicationContext(ApplicationContext acx) {
        context = acx;
    }

    public static ApplicationContext getApplicationContext() {
        return context;
    }
}
